package test.executor;

import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadPoolExecutor;

/**
 * Created by crj on 2017/8/10.
 */
public interface IThreadPoolExecutorService {
    public ThreadPoolExecutor createNewThreadPool();
    public int getCorePoolSize();

    public void setCorePoolSize(int corePoolSize);
    public int getMaxPoolsize();

    public void setMaxPoolsize(int maxPoolsize);
    public long getKeepAliveTime();

    public void setKeepAliveTime(long keepAliveTime);

    public int getQueueCapacity();

    public void setQueueCapacity(int queueCapacity);

    public RejectedExecutionHandler getRejectedExecutionHandler();

    public void setRejectedExecutionHandler(RejectedExecutionHandler rejectedExecutionHandler);

}
